Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to pass raw h11 headers #117

Closed
wants to merge 1 commit into from
Closed

Conversation

thrau
Copy link
Contributor

@thrau thrau commented Apr 9, 2023

The issue of header casing for HTTP/1.1 in hypercorn was addressed with #66, but later reverted with #77. The relevant ASGI spec is being discussed here django/asgiref#246.

This PR adds a config option to accommodate both ways of treating headers, where the default retains the current behavior which is lowercasing all headers.

This would help unblock localstack/localstack#6849 without us having to fork hypercorn or switch to a different server.

@pgjones please let me know if this would be an acceptable compromise, I know adding config options for edge cases is not great.

@thrau
Copy link
Contributor Author

thrau commented Apr 21, 2023

@pgjones have you had a chance to mull it over?

@thrau
Copy link
Contributor Author

thrau commented Jun 25, 2023

ping @pgjones, sorry for being annoying. this would be really useful for us!

@pgjones
Copy link
Owner

pgjones commented Jul 8, 2023

I'm ok with this, it does seem to come up a lot. Fixed in 3179d07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants